package com.sinping.qh.repository.mongo.lab;

import com.sinping.qh.domain.lab.LabInspectItemRelationDomain;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author jiahuaiqing
 * @create 2018/6/6
 */
public interface LabInspectItemRelationRepository extends MongoRepository<LabInspectItemRelationDomain, String> {
    List<LabInspectItemRelationDomain> findByLabId(String labId);
    List<LabInspectItemRelationDomain> findByLabIdOrderByGmtCreatedDesc(String labId);
    LabInspectItemRelationDomain findByLabIdAndInspectItemId(String labId,String inspectItemId);
    List<LabInspectItemRelationDomain> deleteByLabId(String labId);
}
